<?php
/**
 * Created by PhpStorm.
 * User: venki
 * Date: 2023/12/16
 * Time: 12:27
 */

namespace app\models;

use yii\db\ActiveRecord;

class PurchaseOrder extends ActiveRecord
{
    public $id;
    public $no;
//    public $supplier_id;

    public static function tableName()
    {
        return 'purchase_orders';
    }

    public function rules()
    {
        return [
            ['id', 'integer'],
            ['supplier_id', 'integer'],
            ['no', 'string', 'min' => 2, 'max' => 200],
        ];
    }
}
